<!DOCTYPE html>

<html>

<head>
    <meta charset="utf-8">
    <title>编辑技能信息 </title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">

</head>

<body ng-app="app" ng-controller="addContextController">

    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">

            <div class="layui-col-md11">

                <div class="layui-card">
                    <div class="layui-card-header"><a href="javascript:history.go(-1);">返回上一页</a> / 修改技能测试数据</div>
                    <table class="layui-table">
                        <thead>
                            <tr>
                                <th>名字</th>
                                <th>性别</th>
                                <th>年龄</th>
                                <th>生日</th>
                                <th>电话</th>
                                <th>便签</th>
                                <th>加入时间</th>
                                <th>最后一次修改时间</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td> <span id="userinfosid">{{intfo.name}}</span></td>
                                <td><span id="userinfoname">{{intfo.sex}}</span></td>
                                <td><span id="userinfosex">{{intfo.age}}</span></td>
                                <td> <span id="userinfophone">{{intfo.birthday}}</span></td>
                                <td><span id="userinfobirthday">{{intfo.phone}}</span></td>
                                <td><span id="userinfostudentType">{{intfo.typeStudent.names}}</span></td>
                                <td><span id="userinfostudentType">{{intfo.createTime}}</span></td>
                                <td>{{intfo.lastUpdateTime}}</td>
                            </tr>

                        </tbody>
                    </table>
                    <div class="layui-card-body">
                        <form class="layui-form" action="" lay-filter="component-form-element" id="component-form-group">
                            <div class="layui-row layui-col-space10 layui-form-item">

                                <div class="layui-col-lg6">
                                    <label class="layui-form-label">技能测试等级</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="conditionType" lay-verify="required" placeholder="保留两位小数" autocomplete="off" value="{{LeavekillStudent.levea.leid}}" readonly class="layui-input">
                                    </div>
                                </div>

                            </div>



                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">{{LeavekillStudent.levea.height}}</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="height" lay-verify="required" placeholder="保留两位小数" id="height" value="{{LeavekillStudent.height}}" autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                                <div class="layui-inline">
                                    <label class="layui-form-label">{{LeavekillStudent.levea.weight}}</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="width" lay-verify="required" id="width" value="{{LeavekillStudent.weight}}" placeholder="保留两位小数" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">{{LeavekillStudent.levea.abduction}}</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="abduction" lay-verify="required" id="abduction" value="{{LeavekillStudent.abduction}}" placeholder="保留两位小数" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">{{LeavekillStudent.levea.fingerSpan}}</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="fingerSpan" lay-verify="required" id="fingerSpan" value="{{LeavekillStudent.fingerSpan}}" placeholder="保留两位小数" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>


                         
                            <div class="layui-form-item">
                                   
                                <div class="layui-inline">
                                    <label class="layui-form-label " style="color: firebrick;" >{{LeavekillStudent.levea.itemContextOne}}</label>
                                    
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextOneFirst}}</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="itemContextOneFirst" placeholder="保留两位小数" id="itemContextOneFirst" value="{{LeavekillStudent.contextOneFirst}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>

                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextOneSecond}}</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="itemContextOneSecond" placeholder="保留两位小数" id="itemContextOneSecond" value="{{LeavekillStudent.contextOneSecond}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                               
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextOneThirdly}}</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="itemContextOneThirdly" placeholder="保留两位小数" id="itemContextOneThirdly" value="{{LeavekillStudent.contextOneThirdly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                               
                                <div class="layui-inline" ng-if="LeavekillStudent.levea.itemContextOneFourthly!=null">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextOneFourthly}}</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="itemContextOneFourthly" placeholder="保留两位小数" id="itemContextOneFourthly" value="{{LeavekillStudent.contextOneFourthly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" >
                                    <label class="layui-form-label" style="font-size: 8px;">分数：{{LeavekillStudent.contextOneScroue}}</label>      
                                </div>
                              
                            </div>

                            <div class="layui-form-item">
                                
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="color: firebrick;">{{LeavekillStudent.levea.itemContextTow}}</label>
                                     
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;"> {{LeavekillStudent.levea.itemContextTowFirst}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextTowFirst" placeholder="保留两位小数" id="itemContextTowFirst" value="{{LeavekillStudent.contextTowFirst}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;"> {{LeavekillStudent.levea.itemContextTowSecond}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextTowSecond" placeholder="保留两位小数" id="itemContextTowSecond" value="{{LeavekillStudent.contextTowSecond}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;"> {{LeavekillStudent.levea.itemContextTowThirdly}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextTowThirdly" placeholder="保留两位小数" id="itemContextTowThirdly" value="{{LeavekillStudent.contextTowThirdly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" ng-if="LeavekillStudent.levea.itemContextTowFourthly!=null">
                                    <label class="layui-form-label" style="font-size: 8px;"> {{LeavekillStudent.levea.itemContextTowFourthly}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextTowFourthly" placeholder="保留两位小数" id="itemContextTowFourthly" value="{{LeavekillStudent.contextTowFourthly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" >
                                    <label class="layui-form-label" style="font-size: 8px;">分数：{{LeavekillStudent.contextTowScroue}}</label>
                                    
                                </div>
                            </div>

                            <div class="layui-form-item">
                              
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="color: firebrick;">{{LeavekillStudent.levea.itemContextThree}}</label>
                                    
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextThreeFirst}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextThreeFirst" placeholder="保留两位小数" id="itemContextThreeFirst" value="{{LeavekillStudent.contextThreeFirst}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextThreeSecond}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextThreeSecond" placeholder="保留两位小数" id="itemContextThreeSecond" value="{{LeavekillStudent.contextThreeSecond}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextThreeThirdly}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextThreeThirdly" placeholder="保留两位小数" id="itemContextThreeThirdly" value="{{LeavekillStudent.contextThreeThirdly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" ng-if="LeavekillStudent.levea.itemContextThreeFourthly!=null">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextThreeFourthly}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextThreeFourthly" placeholder="保留两位小数" id="itemContextThreeFourthly" value="{{LeavekillStudent.contextThreeFourthly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" >
                                    <label class="layui-form-label" style="font-size: 8px;">分数：{{LeavekillStudent.contextThreeScroue}}</label>
                                    
                                </div>
                            </div>


                            <div class="layui-form-item">
                                
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="color: firebrick;" >{{LeavekillStudent.levea.itemContextFroth}}</label>
                                     
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextFrothFirst}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextFrothFirst" placeholder="保留两位小数" id="itemContextFrothFirst"  value="{{LeavekillStudent.contextFrothFirst}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextFrothSecond}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextFrothSecond" placeholder="保留两位小数" id="itemContextFrothSecond" value="{{LeavekillStudent.contextFrothSecond}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextFrothThirdly}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextFrothThirdly" placeholder="保留两位小数" id="itemContextFrothThirdly" value="{{LeavekillStudent.contextFrothThirdly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" ng-if="LeavekillStudent.levea.itemContextFrothFourthly!=null">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextFrothFourthly}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextFrothFourthly" placeholder="保留两位小数" id="itemContextFrothFourthly" value="{{LeavekillStudent.contextFrothFourthly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" >
                                    <label class="layui-form-label" style="font-size: 8px;">分数：{{LeavekillStudent.contextFrothScroue}}</label>
                                    
                                </div>
                            </div>


                            <div class="layui-form-item">
                                
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="color: firebrick;" >{{LeavekillStudent.levea.itemContextFive}}</label>
                                    
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextFiveFirst}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextFiveFirst" placeholder="保留两位小数" id="itemContextFiveFirst" value="{{LeavekillStudent.contextFiveFirst}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextFiveSecond}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextFiveSecond" placeholder="保留两位小数" id="itemContextFiveSecond" value="{{LeavekillStudent.contextFiveSecond}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextFiveThirdly}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextFiveThirdly" placeholder="保留两位小数" id="itemContextFiveThirdly" value="{{LeavekillStudent.contextFiveThirdly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" ng-if="LeavekillStudent.levea.itemContextFiveFourthly!=null">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextFiveFourthly}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextFiveFourthly" placeholder="保留两位小数" id="itemContextFiveFourthly" value="{{LeavekillStudent.contextFiveFourthly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" >
                                    <label class="layui-form-label" style="font-size: 8px;">分数：{{LeavekillStudent.contextFiveScroue}}</label>
                                    
                                </div>

                            </div>


                            <div class="layui-form-item">
                               
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="color: firebrick;" >{{LeavekillStudent.levea.itemContextSix}}</label>
                                    
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextSixFirst}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextSixFirst" placeholder="保留两位小数" id="itemContextSixFirst" value="{{LeavekillStudent.contextSixFirst}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextSixSecond}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextSixSecond" placeholder="保留两位小数" id="itemContextSixSecond" value="{{LeavekillStudent.contextSixSecond}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextSixThirdly}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextSixThirdly" placeholder="保留两位小数" id="itemContextSixThirdly" value="{{LeavekillStudent.contextSixThirdly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" ng-if="LeavekillStudent.levea.itemContextSixFourthly!=null">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextSixFourthly}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextSixFourthly" placeholder="保留两位小数" id="itemContextSixFourthly" value="{{LeavekillStudent.contextSixFourthly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" >
                                    <label class="layui-form-label" style="font-size: 8px;">分数：{{LeavekillStudent.contextSixScroue}}</label>
                                    
                                </div>

                            </div>


                            <div class="layui-form-item">
                                
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="color: firebrick;">{{LeavekillStudent.levea.itemContextSeven}} </label>
                                    
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextSevenFirst}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextSevenFirst" placeholder="保留两位小数" id="itemContextSevenFirst" value="{{LeavekillStudent.contextSevenFirst}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextSevenSecond}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextSevenSecond" placeholder="保留两位小数" id="itemContextSevenSecond" value="{{LeavekillStudent.contextSevenSecond}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextSevenThirdly}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextSevenThirdly" placeholder="保留两位小数" id="itemContextSevenThirdly" value="{{LeavekillStudent.contextSevenThirdly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" ng-if="LeavekillStudent.levea.itemContextSevenFourthly!=null">
                                    <label class="layui-form-label" style="font-size: 8px;">{{LeavekillStudent.levea.itemContextSevenFourthly}}</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="itemContextSevenFourthly" placeholder="保留两位小数" id="itemContextSevenFourthly" value="{{LeavekillStudent.contextSevenFourthly}}" lay-verify="required" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" >
                                    <label class="layui-form-label" style="font-size: 8px;">分数：{{LeavekillStudent.contextSevenScroue}}</label>
                                    
                                </div>
                            </div>
                            


                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" type="button" lay-submit lay-filter="component-form-element">保存</button>
                                    <a class="layui-btn layui-btn-primary" href="javascript:history.go(-1);">返回</a>
                                </div>
                            </div>

                        </form>
                        <table class="layui-table">
                            <thead>
                                <tr>
                                    <th>加入时间</th>
                                    <th>上一次修改时间</th>
                                    <th>总分</th>
                                    <th>平均分</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>{{LeavekillStudent.createTime}} </td>
                                    <td>{{LeavekillStudent.lastUpdateTime}}</td>
                                    <td> {{sum}}</td>
                                    <td> {{avg}}</td>
                                </tr>

                            </tbody>
                        </table>


                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="../../../layuiadmin/jquery/jquery-1.11.1.min.js"></script>
    <script src="../../../layuiadmin/url.js"></script>
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/jquery/angular.js"></script>
    <script>
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form'], function() {
            var $ = layui.$,
                admin = layui.admin,
                element = layui.element,
                form = layui.form;

            form.render(null, 'component-form-element');
            element.render('breadcrumb', 'breadcrumb');
            //获取url地址栏
            function getQueryVariable(variable) {
                var query = window.location.search.substring(1);
                var vars = query.split("&");
                for (var i = 0; i < vars.length; i++) {
                    var pair = vars[i].split("=");
                    if (pair[0] == variable) {
                        return pair[1];
                    }
                }
                return (false);
            }

            form.on('submit(component-form-element)', function(data) {
                var leid = getQueryVariable("leId");
                //  layer.msg(JSON.stringify(data.field));

                var height = data.field.height;
                var width = data.field.width;
                var abduction = data.field.abduction;
                var fingerSpan = data.field.fingerSpan;
                var height = data.field.height;
                var width = data.field.width;
                var abduction = data.field.abduction;
                var fingerSpan = data.field.fingerSpan;
               
                var itemContextOneFirst = data.field.itemContextOneFirst;
                var itemContextOneSecond = data.field.itemContextOneSecond;
                var itemContextOneThirdly = data.field.itemContextOneThirdly;
                var itemContextOneFourthly = data.field.itemContextOneFourthly;

                var itemContextTowFirst = data.field.itemContextTowFirst;
                var itemContextTowSecond = data.field.itemContextTowSecond;
                var itemContextTowThirdly = data.field.itemContextTowThirdly;
                var itemContextTowFourthly = data.field.itemContextTowFourthly;
             
                var itemContextThreeFirst = data.field.itemContextThreeFirst;
                var itemContextThreeSecond = data.field.itemContextThreeSecond;
                var itemContextThreeThirdly = data.field.itemContextThreeThirdly;
                var itemContextThreeFourthly = data.field.itemContextThreeFourthly;

                var itemContextFrothFirst = data.field.itemContextFrothFirst;
                var itemContextFrothSecond = data.field.itemContextFrothSecond;
                var itemContextFrothThirdly = data.field.itemContextFrothThirdly;
                var itemContextFrothFourthly = data.field.itemContextFrothFourthly;

                var itemContextFiveFirst = data.field.itemContextFiveFirst;
                var itemContextFiveSecond = data.field.itemContextFiveSecond;
                var itemContextFiveThirdly = data.field.itemContextFiveThirdly;
                var itemContextFiveFourthly = data.field.itemContextFiveFourthly;

                var itemContextSixFirst = data.field.itemContextSixFirst;
                var itemContextSixSecond = data.field.itemContextSixSecond;
                var itemContextSixThirdly = data.field.itemContextSixThirdly;
                var itemContextSixFourthly = data.field.itemContextSixFourthly;

                var itemContextSevenFirst = data.field.itemContextSevenFirst;
                var itemContextSevenSecond = data.field.itemContextSevenSecond;
                var itemContextSevenThirdly = data.field.itemContextSevenThirdly;
                var itemContextSevenFourthly = data.field.itemContextSevenFourthly;

                $.ajax({
                    type: "POST",
                    dataType: "json",
                    url: applicationUrl + 'LevelkillStudent/api/update',
                    data: {
                        leId: leid,
                        height:height,width:width,abduction:abduction,fingerSpan:fingerSpan,
                        itemContextOneFirst:itemContextOneFirst,itemContextOneSecond:itemContextOneSecond,
                        itemContextOneThirdly:itemContextOneThirdly,itemContextOneFourthly:itemContextOneFourthly,
                        
                        itemContextTowFirst:itemContextTowFirst,itemContextTowSecond:itemContextTowSecond,
                        itemContextTowThirdly:itemContextTowThirdly,itemContextTowFourthly:itemContextTowFourthly,

                        itemContextThreeFirst:itemContextThreeFirst,itemContextThreeSecond:itemContextThreeSecond,
                        itemContextThreeThirdly:itemContextThreeThirdly,itemContextThreeFourthly:itemContextThreeFourthly,

                        itemContextFrothFirst:itemContextFrothFirst,itemContextFrothSecond:itemContextFrothSecond,
                        itemContextFrothThirdly:itemContextFrothThirdly,itemContextFrothFourthly:itemContextFrothFourthly,

                        itemContextFiveFirst:itemContextFiveFirst,itemContextFiveSecond:itemContextFiveSecond,
                        itemContextFiveThirdly:itemContextFiveThirdly,itemContextFiveFourthly:itemContextFiveFourthly,

                        itemContextSixFirst:itemContextSixFirst,itemContextSixSecond:itemContextSixSecond,
                        itemContextSixThirdly:itemContextSixThirdly,itemContextSixFourthly:itemContextSixFourthly,

                        itemContextSevenFirst:itemContextSevenFirst,itemContextSevenSecond:itemContextSevenSecond,
                        itemContextSevenThirdly:itemContextSevenThirdly,itemContextSevenFourthly:itemContextSevenFourthly,
                    },
                    success: function(result) {
                        layer.msg(result.msg);
                    },
                    error: function(result) {
                        layer.msg(result.msg);

                    }

                })
                return false;
            });
        });





        var app = angular.module('app', []);
        app.controller('addContextController', ['$scope', '$http', function($scope, $http) {
            //获取url地址栏
            function getQueryVariable(variable) {
                var query = window.location.search.substring(1);
                var vars = query.split("&");
                for (var i = 0; i < vars.length; i++) {
                    var pair = vars[i].split("=");
                    if (pair[0] == variable) {
                        return pair[1];
                    }
                }
                return (false);
            }

            $scope.getleveaKillStudentContext = function() {
                // var cid = $("#conditionType").val();
                var cid = getQueryVariable("cid");
                var sid = getQueryVariable("sid");
                var leid = getQueryVariable("leId");
                // alert("sid=" + sid + "leid=" + leid);

                if (leid != "") {
                    console.log("ok");

                    $http({
                        method: 'POST',
                        url: applicationUrl + 'LevelkillStudent/api/selectByLeid',
                        headers: {
                            "Content-Type": 'application/x-www-form-urlencoded'
                        },
                        params: {
                            leid: leid
                        },
                    }).success(function(result) {
                        $scope.LeavekillStudent = result.data;
                        var total = 0;
                        total += result.data.contextOneScroue;
                        total += result.data.contextTowScroue;
                        total += result.data.contextThreeScroue;
                        total += result.data.contextFrothScroue;
                        total += result.data.contextFiveScroue;
                        total += result.data.contextSixScroue;
                        total += result.data.contextSevenScroue;
                        $scope.avg = total / 7;
                        $scope.sum = total;
                    }).error(function(data, status) {
                        console.log(" ");
                    });
                } else {
                    console.log("no");
                }


            };
            $scope.getleveaKillStudentContext();
            $scope.getintfor = function() {

                var sid = getQueryVariable("sid");
                if (sid != "") {
                    console.log("ok");

                    $http({
                        method: 'GET',
                        url: applicationUrl + 'student/api/byid',
                        headers: {
                            "Content-Type": 'application/x-www-form-urlencoded'
                        },
                        params: {
                            sid: sid
                        },
                    }).success(function(result) {
                        $scope.intfo = result.data;

                    }).error(function(data, status) {
                        console.log(" ");
                    });
                } else {
                    console.log("no");
                }
            };
            $scope.getintfor();


        }]);
    </script>
</body>

</html>